from django.urls import path,re_path
from rest_framework_jwt.views import obtain_jwt_token
from . import views
urlpatterns = [
    # 调用drｆ-jwt模型提供的视图功能，
    path("login/", obtain_jwt_token),
    # 校验手机号码是否注册
    re_path("mobile/(?P<mobile>1[3-9]\d{9})/", views.CheckMobileAPIView.as_view()),
    # 注册用户
    path("regist/", views.UserAPIView.as_view()),
    # 获取客服电话
    path("tel/", views.GetTelAPIView.as_view()),
    # 修改用户密码
    path("update/", views.UserUpdateAPIView.as_view({"put": "update"})),

]
